package org.example.springboot.jpa.repository;

import org.example.springboot.jpa.po.User;
import org.springframework.data.repository.CrudRepository;

public interface UserRepository extends CrudRepository<User, String> {

    /**
     * select * from t_user where loginName = ?
     * @param username
     * @return
     */
    User findByLoginName(String username);
}
